package com.ruoyi.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@ApiModel("团队管理列表")
@Data
public class BdmTeamAdminVo implements Serializable {


    @ApiModelProperty(value = "会员id")
    private Long userId;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "用户手机号")
    private String phoneNumber;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "升级时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "助力人数")
    private Integer memberUpgradeNumber ;

    @ApiModelProperty(value = "推荐人会员id")
    private Long referrerUserId;

    @ApiModelProperty(value = "推荐人用户头像")
    private String referrerAvatar;

    @ApiModelProperty(value = "推荐人用户昵称")
    private String referrerNickName;

    @ApiModelProperty(value = "补贴人会员id")
    private Long subsidyUserId;

    @ApiModelProperty(value = "补贴人用户头像")
    private String subsidyAvatar;

    @ApiModelProperty(value = "补贴人用户昵称")
    private String subsidyNickName;

    @ApiModelProperty(value = "奖励类型")
    private String commissionTypeName;

    @ApiModelProperty(value = "已结算佣金")
    private String memberCloseMoney;

    @ApiModelProperty(value = "加入时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "业绩")
    private BigDecimal performance;

    @ApiModelProperty(value = "1号业绩")
    private BigDecimal onePerformance = BigDecimal.ZERO;

    @ApiModelProperty(value = "2号业绩")
    private BigDecimal twoPerformance = BigDecimal.ZERO;

    @ApiModelProperty(value = "对应用户助力用户人员信息")
    private List<BdmTeamAdminVo>teamAdminVos;

    @ApiModelProperty(value = "助力位置")
    private Integer location;

    @ApiModelProperty(value = "助力位置 后")
    private Integer laterLocation;
}
